using AutoClick.capture.impl;

namespace AutoClick.capture;

public static class GameCaptureFactory
{
    public static IGameCapture CreateGameCapture(string method)
    {
        return method switch
        {
            "BitBlt" => new BitBltCapture(),
            "OptimizedBitBlt" => new OptimizedBitBltCapture(),
            "Dxgi" => DxgiCapture.Instance,
            "WindowsApi" => new WindowsGraphicsCapture(),
            _ => throw new Exception("Unknown capture method")
        };
    }
}